package com.beaut.project.control;

import java.util.HashMap;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.beaut.project.service.GDService;

/**
 * 工单模块管理
 * @author jzk
 *
 */
@Controller
@RequestMapping("/gd")
public class GDController  extends BaseControl{
	@Autowired 
	GDService gdService;
	
	@RequestMapping(value = "/checkSameGdCode", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
	public @ResponseBody String checkSameGdCode(HttpServletRequest request) {
		return gdService.checkSameGdCode(requestParameterToMap(request));
	}
    @RequestMapping(value = "/addGDMain", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDMain(HttpServletRequest request) {
    	return gdService.addGDMain(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDMainChange", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDMainChange(HttpServletRequest request) {
    	return gdService.addGDMainChange(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDChangeAssume", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDChangeAssume(HttpServletRequest request) {
    	return gdService.addGDChangeAssume(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDBgMain", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDBgMain(HttpServletRequest request) {
    	return gdService.addGDBgMain(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDBgMain", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDBgMain(HttpServletRequest request) {
    	return gdService.updateGDBgMain(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteGd", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGd(HttpServletRequest request) {
    	return gdService.deleteGd(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDMain", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDMain(HttpServletRequest request) {
    	return gdService.updateGDMain(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDChangeAssume", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDChangeAssume(HttpServletRequest request) {
    	return gdService.updateGDChangeAssume(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteChangeAssume", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteChangeAssume(HttpServletRequest request) {
    	return gdService.deleteChangeAssume(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDBaseById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDBaseById(HttpServletRequest request) {
    	return gdService.getGDBaseById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDControl", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDControl(HttpServletRequest request) {
    	return gdService.getGDControl(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDChangeControl", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDChangeControl(HttpServletRequest request) {
    	return gdService.getGDChangeControl(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDContentByGDId", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDContentByGDId(HttpServletRequest request) {
    	return gdService.getGDContentByGDId(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDBaseBgById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDBaseBgById(HttpServletRequest request) {
    	return gdService.getGDBaseBgById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDCustomerReturnFlowNum", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDCustomerReturnFlowNum(HttpServletRequest request) {
    	return gdService.getGDCustomerReturnFlowNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getDbBorrowMaterialNum", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getDbBorrowMaterialNum(HttpServletRequest request) {
    	return gdService.getDbBorrowMaterialNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGdAssMaterial", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGdAssMaterial(HttpServletRequest request) {
    	return gdService.getGdAssMaterial(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getDbBorrowMaterial", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getDbBorrowMaterial(HttpServletRequest request) {
    	return gdService.getDbBorrowMaterial(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getSelfMaterialReturnNum", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getSelfMaterialReturnNum(HttpServletRequest request) {
    	return gdService.getSelfMaterialReturnNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGd", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGd(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGd(map);
    }
    @RequestMapping(value = "/listPageTmpGd", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageTmpGd(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageTmpGd(map);
    }
    @RequestMapping(value = "/listPageGDSupplierAlreadyApplyForPurchase", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDSupplierAlreadyApplyForPurchase(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDSupplierAlreadyApplyForPurchase(map);
    }
    @RequestMapping(value = "/listPageGDChangeAssume", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDChangeAssume(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDChangeAssume(map);
    }
    @RequestMapping(value = "/listPageGDReturn", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDReturn(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDReturn(map);
    }
    @RequestMapping(value = "/listGDReturnDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDReturnDetail(HttpServletRequest request) {
    	return gdService.listGDReturnDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteGdReturnApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGdReturnApply(HttpServletRequest request) {
    	return gdService.deleteGdReturnApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getReturnApplyById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getReturnApplyById(HttpServletRequest request) {
    	return gdService.getReturnApplyById(requestParameterToMap(request));
    }
    
    @RequestMapping(value = "/listGDJgApplyDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDJgApplyDetail(HttpServletRequest request) {
    	return gdService.listGDJgApplyDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDReturn", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDReturn(HttpServletRequest request) {
    	return gdService.addGDReturn(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDReturn", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDReturn(HttpServletRequest request) {
    	return gdService.updateGDReturn(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageGDPlan", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDPlan(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDPlan(map);
    }
    @RequestMapping(value = "/listPageMaterial", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageMaterial(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageMaterial(map);
    }
    @RequestMapping(value = "/listPageChangeMaterial", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageChangeMaterial(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageChangeMaterial(map);
    }
    @RequestMapping(value = "/listPageChangeFBDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageChangeFBDetail(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageChangeFBDetail(map);
    }
    @RequestMapping(value = "/listPageSupplierDB", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageSupplierDB(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageSupplierDB(map);
    }
    @RequestMapping(value = "/listGDStatus", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDStatus(HttpServletRequest request) {
    	return gdService.listGDStatus();
    }
    @RequestMapping(value = "/listPageWarehouseGD", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageWarehouseGD(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageWarehouseGD(map);
    }
    @RequestMapping(value = "/listPageGDBase", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDBase(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDBase(map);
    }
    @RequestMapping(value = "/listPageOldGDBase", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageOldGDBase(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageOldGDBase(map);
    }
    @RequestMapping(value = "/listDepartment", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listDepartment(HttpServletRequest request) {
    	return gdService.listDepartment();
    }
    @RequestMapping(value = "/listPageUser", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageUser(HttpServletRequest request) {
    	Map<String,Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageUser(map);
    }
    @RequestMapping(value = "/listPageGDStatisticDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDStatisticDetail(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDStatisticDetail(map);
    }
    @RequestMapping(value = "/listGDContent", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDContent(HttpServletRequest request) {
    	return gdService.listGDContent(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listOldGDContent", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listOldGDContent(HttpServletRequest request) {
    	return gdService.listOldGDContent(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageFBDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageFBDetail(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageFBDetail(map);
    }
    @RequestMapping(value = "/listPageSelfMaterial", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageSelfMaterial(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageSelfMaterial(map);
    }
    @RequestMapping(value = "/listPageGDDescription", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDDescription(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDDescription(map);
    }
    @RequestMapping(value = "/addGDDescription", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String addGDDescription(HttpServletRequest request) {
    	return gdService.addGDDescription(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDDescription", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String updateGDDescription(HttpServletRequest request) {
    	return gdService.updateGDDescription(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteGdDescritpion", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGdDescritpion(HttpServletRequest request) {
    	return gdService.deleteGdDescritpion(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDBaseWork", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDBaseWork(HttpServletRequest request) {
    	return gdService.updateGDBaseWork(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDDescriptionById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDDescriptionById(HttpServletRequest request) {
    	return gdService.getGDDescriptionById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageGDSelfRequest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDMaterialRequest(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDSelfRequest(map);
    }
    @RequestMapping(value = "/listGDSelfRequestDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDSelfRequestDetail(HttpServletRequest request) {
    	return gdService.listGDSelfRequestDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getSelfRequestById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getSelfRequestById(HttpServletRequest request) {
    	return gdService.getSelfRequestById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDSelfRequest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDSelfRequest(HttpServletRequest request) {
    	return gdService.addGDSelfRequest(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDSelfRequest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDSelfRequest(HttpServletRequest request) {
    	return gdService.updateGDSelfRequest(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteSelfRequest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteSelfRequest(HttpServletRequest request) {
    	return gdService.deleteSelfRequest(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDCustomerBorrow", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDCustomerBorrow(HttpServletRequest request) {
    	return gdService.addGDCustomerBorrow(requestParameterToMap(request));
    }
    
    @RequestMapping(value = "/addGDCustomerReturn", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDCustomerReturn(HttpServletRequest request) {
    	return gdService.addGDCustomerReturn(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDCustomerReturn", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDCustomerReturn(HttpServletRequest request) {
    	return gdService.updateGDCustomerReturn(requestParameterToMap(request));
    }
    
    @RequestMapping(value = "/updateGDCustomerBorrow", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDCustomerBorrow(HttpServletRequest request) {
    	return gdService.updateGDCustomerBorrow(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteCustomerBorrow", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteCustomerBorrow(HttpServletRequest request) {
    	return gdService.deleteCustomerBorrow(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteCustomerReturn", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteCustomerReturn(HttpServletRequest request) {
    	return gdService.deleteCustomerReturn(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageGDCustomerBorrow", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDCustomerBorrow(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDCustomerBorrow(map);
    }
    @RequestMapping(value = "/listPageGDCustomerReturn", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDCustomerReturn(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDCustomerReturn(map);
    }
    @RequestMapping(value = "/listPageBorrowSet", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageBorrowSet(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageBorrowSet(map);
    }
    @RequestMapping(value = "/listPageBorrowSetXm", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageBorrowSetXm(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageBorrowSetXm(map);
    }
    @RequestMapping(value = "/listGDCustomerBorrowDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDCustomerBorrowDetail(HttpServletRequest request) {
    	return gdService.listGDCustomerBorrowDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDCustomerReturnDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDCustomerReturnDetail(HttpServletRequest request) {
    	return gdService.listGDCustomerReturnDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getCustomerBorrowById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getCustomerBorrowById(HttpServletRequest request) {
    	return gdService.getCustomerBorrowById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getPurchaseNum", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getPurchaseNum(HttpServletRequest request) {
    	return gdService.getPurchaseNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getCustomerReturnById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getCustomerReturnById(HttpServletRequest request) {
    	return gdService.getCustomerReturnById(requestParameterToMap(request));
    }
    /**
     * 根据工单id获取工单信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/getGDBaseAndContentById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDBaseAndContentById(HttpServletRequest request) {
    	return gdService.getGDBaseAndContentById(requestParameterToMap(request));
    }
    /**
     * 根据安质id获取安质信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/getSecurityById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getSecurityById(HttpServletRequest request) {
    	return gdService.getSecurityById(requestParameterToMap(request));
    }
    /**
     * 工单安质列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listSecurity", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageSecurity(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageSecurity(map);
    }
    /**
     * 安质添加
     * @param request
     * @return
     */
    @RequestMapping(value = "/addSecurity", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addSecurity(HttpServletRequest request) {
    	Map<String,Object> map = requestParameterToMapUser(request);
    	Map<String, Object> sessionMap = (Map<String, Object>) request.getSession().getAttribute("LOGIN_USER");
    	map.put("person_id", sessionMap.get("id"));
		map.put("person", sessionMap.get("truename"));
    	return gdService.addSecurity(map);
    }
    /**
     * 安质编辑
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateSecurity", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateSecurity(HttpServletRequest request) {
    	return gdService.updateSecurity(requestParameterToMapUser(request));
    }
    /**
     * 周报列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listProcess", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageProcess(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageProcess(map);
    }
   /**
    * 根据周报id获取周报信息
    * @param request
    * @return
    */
    @RequestMapping(value = "/getProcessById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getProcessById(HttpServletRequest request) {
    	return gdService.getProcessById(requestParameterToMap(request));
    }
  
    /**
     * 周报添加
     * @param request
     * @return
     */
    @RequestMapping(value = "/addProcess", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String addProcess(HttpServletRequest request) {
    	return gdService.addProcess(requestParameterToMapUser(request));
    }
    /**
     * 周报编辑
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateProcess", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String updateProcess(HttpServletRequest request) {
    	return gdService.updateProcess(requestParameterToMapUser(request));
    }
   
    /**
     * 现场较低确认状态
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGdDescritpionStatus", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGdDescritpionStatus(HttpServletRequest request) {
    	return gdService.updateGdDescritpionStatus(requestParameterToMapUser(request));
    }
    
    /**
     * 更新工单状态通用方法
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGDStatus", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDStatus(HttpServletRequest request) {
    	return gdService.updateGDStatus(requestParameterToMapUser(request));
    }
    /**
     * 删除周报
     * @param request
     * @return
     */
    @RequestMapping(value = "/deleteProcess", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
	public @ResponseBody String deleteCustomer(HttpServletRequest request) {
		return gdService.deleteProcess(requestParameterToMap(request));
	}
    /**
     * 删除安质信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/deleteSecurity", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteSecurity(HttpServletRequest request) {
    	return gdService.deleteSecurity(requestParameterToMap(request));
    }
    /**
     * 工单财务借款信息列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listGdLoan", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGdLoan(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGdLoan(map);
    }
    /**
     * 工单财务借款添加
     * @param request
     * @return
     */
    @RequestMapping(value = "/addGdLoan", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String addGdLoan(HttpServletRequest request) {
    	Map<String,Object>map=new HashMap<String,Object>();
    	return gdService.addGdLoan(requestParameterToMap(request));
    }
    /**
     * 工单财务借款编辑
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGdLoan", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String updateGdLoan(HttpServletRequest request) {
    	return gdService.updateGdLoan(requestParameterToMap(request));
    }
    /**
     * 工单财务借款根据id查询信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/getGdLoanById", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    public @ResponseBody String getGdLoanById(HttpServletRequest request) {
    	return gdService.getGdLoanById(requestParameterToMap(request));
    }
    /**
     * 工单财务根据id删除
     * @param request
     * @return
     */
    @RequestMapping(value = "/deleteGdLoan", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGdLoan(HttpServletRequest request) {
    	return gdService.deleteGdLoan(requestParameterToMap(request));
    }
    /**
     * 工单财务实际放款更新
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGdActualLoan", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGdActualLoan(HttpServletRequest request) {
    	return gdService.updateGdActualLoan(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款实际放款更新
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGdActualAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGdActualAdvances(HttpServletRequest request) {
    	return gdService.updateGdActualAdvances(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款实际还款更新
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGdActualYetAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGdActualYetAdvances(HttpServletRequest request) {
    	return gdService.updateGdActualYetAdvances(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款根据id查询信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/getGdAdvancesById", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    public @ResponseBody String getGdAdvancesById(HttpServletRequest request) {
    	return gdService.getGdAdvancesById(requestParameterToMap(request));
    } 
    /**
     * 工单财务垫款根据id查询信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/getGdNewAdvancesById", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    public @ResponseBody String getGdNewAdvancesById(HttpServletRequest request) {
    	return gdService.getGdNewAdvancesById(requestParameterToMap(request));
    } 
    
    @RequestMapping(value = "/listGdNewAdvancesDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGdNewAdvancesDetail(HttpServletRequest request) {
    	return gdService.listGdNewAdvancesDetail(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款还款信息列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listGdYetAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGdYetAdvances(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGdYetAdvances(map);
    }
    /**
     * 工单财务垫款还款信息列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listPageGdYetAdvancesDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGdYetAdvancesDetail(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGdYetAdvancesDetail(map);
    }
    /**
     * 工单财务垫款还款添加
     * @param request
     * @return
     */
    @RequestMapping(value = "/addGdYetAdvances", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String addGdYetAdvances(HttpServletRequest request) {
    	return gdService.addGdYetAdvances(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款还款编辑
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGdYetAdvances", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String updateGdYetAdvances(HttpServletRequest request) {
    	return gdService.updateGdYetAdvances(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款还款根据id删除
     * @param request
     * @return
     */
    @RequestMapping(value = "/deleteGdYetAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGdYetAdvances(HttpServletRequest request) {
    	return gdService.deleteGdYetAdvances(requestParameterToMap(request));
    }
    /**
     * 工单财务还款根据id查询信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/getGdYetAdvancesById", method = RequestMethod.GET, produces = "text/html;charset=UTF-8")
    public @ResponseBody String getGdYetAdvancesById(HttpServletRequest request) {
    	return gdService.getGdYetAdvancesById(requestParameterToMap(request));
    } 
    @RequestMapping(value = "/listGdYetAdvancesByYetId", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String listGdYetAdvancesByYetId(HttpServletRequest request) {
    	return gdService.listGdYetAdvancesByYetId(requestParameterToMap(request));
    } 
    @RequestMapping(value = "/listGdYetAdvance", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String listGdYetAdvance(HttpServletRequest request) {
    	return gdService.listGdYetAdvance(requestParameterToMap(request));
    } 
    /**
     * 工单财务垫款信息列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listGdAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGdAdvances(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGdAdvances(map);
    }
    
    /**
     * 工单财务垫款信息列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listPageGdNewAdvances",method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGdNewAdvances(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGdNewAdvances(map);
    }
    /**
     * 工单财务垫款信息列表
     * @param request
     * @return
     */
    @RequestMapping(value = "/listFinanceGdAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageFinanceGdAdvances(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageFinanceGdAdvances(map);
    }
    /**
     * 工单财务垫款添加
     * @param request
     * @return
     */
    @RequestMapping(value = "/addGdAdvances", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String addGdAdvances(HttpServletRequest request) {
    	Map<String,Object>map=new HashMap<String,Object>();
    	return gdService.addGdAdvances(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款编辑
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGdAdvances", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String updateGdAdvances(HttpServletRequest request) {
    	return gdService.updateGdAdvances(requestParameterToMap(request));
    }
    /**
     * 工单财务垫款根据id删除
     * @param request
     * @return
     */
    @RequestMapping(value = "/deleteGdAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGdAdvances(HttpServletRequest request) {
    	return gdService.deleteGdAdvances(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteGdNewAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGdNewAdvances(HttpServletRequest request) {
    	return gdService.deleteGdNewAdvances(requestParameterToMap(request));
    }
    /**
     * 甲供材领料出库
     * @param request
     * @return
     */
    @RequestMapping(value = "/listJgRequestMateria", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageJgRequestMateria(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageJgRequestMateria(map);
    }
    /**
     * 甲供材领料出库产品明细
     * @param request
     * @return
     */
    @RequestMapping(value = "/listGDJgRequestDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDJgRequestDetail(HttpServletRequest request) {
    	return gdService.listGDJgRequestDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDJgRequestDetailPrint", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDJgRequestDetailPrint(HttpServletRequest request) {
    	return gdService.listGDJgRequestDetailPrint(requestParameterToMap(request));
    }
    /**
     * 甲供材领料出库删除
     * @param request
     * @return
     */
    @RequestMapping(value = "/deleteJgRequest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteJgRequest(HttpServletRequest request) {
    	return gdService.deleteJgRequest(requestParameterToMap(request));
    }
    /**
     * 甲供材领料出库根据id查看信息
     * @param request
     * @return
     */
    @RequestMapping(value = "/getJgRequestById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getJgRequestById(HttpServletRequest request) {
    	return gdService.getJgRequestById(requestParameterToMap(request));
    }
    /**
     * 甲供材查询出项目是否立项
     * @param request
     * @return
     */
    @RequestMapping(value = "/getXmBygdId", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getXmBygdId(HttpServletRequest request) {
    	return gdService.getXmBygdId(requestParameterToMap(request));
    }
    /**
     * 甲供材领料出库添加
     * @param request
     * @return
     */
    @RequestMapping(value = "/addGDJgRequest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDJgRequest(HttpServletRequest request) {
    	return gdService.addGDJgRequest(requestParameterToMap(request));
    }
    /**
     * 甲供材领料出库编辑
     * @param request
     * @return
     */
    @RequestMapping(value = "/updateGDJgRequest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDJgRequest(HttpServletRequest request) {
    	return gdService.updateGDJgRequest(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageGDReuse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDReuse(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDReuse(map);
    }
    @RequestMapping(value = "/listPageGDPurchaseApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDPurchaseApply(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDPurchaseApply(map);
    }
    @RequestMapping(value = "/listPageGDPurchaseReturnApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDPurchaseReturnApply(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDPurchaseReturnApply(map);
    }
    @RequestMapping(value = "/listPageGDSupplierApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDSupplierApply(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDSupplierApply(map);
    }
    @RequestMapping(value = "/listPageGDPurchaseApplyUse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDPurchaseApplyUse(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDPurchaseApplyUse(map);
    }
    @RequestMapping(value = "/listGDPurchaseApplyDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDPurchaseApplyDetail(HttpServletRequest request) {
    	return gdService.listGDPurchaseApplyDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDPurchaseApplyDetail1", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDPurchaseApplyDetail1(HttpServletRequest request) {
    	return gdService.listGDPurchaseApplyDetail1(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDPurchaseReturnApplyDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDPurchaseReturnApplyDetail(HttpServletRequest request) {
    	return gdService.listGDPurchaseReturnApplyDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDSupplierApplyDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDSupplierApplyDetail(HttpServletRequest request) {
    	return gdService.listGDSupplierApplyDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDSupplierApplyDetail1", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDSupplierApplyDetail1(HttpServletRequest request) {
    	return gdService.listGDSupplierApplyDetail1(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getPurchaseApplyDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getPurchaseApplyDetail(HttpServletRequest request) {
    	return gdService.getPurchaseApplyDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getJgMaterialTotalNum", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getJgMaterialTotalNum(HttpServletRequest request) {
    	return gdService.getJgMaterialTotalNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getCustomerMaterialTotalNum", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getCustomerMaterialTotalNum(HttpServletRequest request) {
    	return gdService.getCustomerMaterialTotalNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getSupplierTotalNum", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getSupplierTotalNum(HttpServletRequest request) {
    	return gdService.getSupplierTotalNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getSelfMaterialTotalNum", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getSelfMaterialTotalNum(HttpServletRequest request) {
    	return gdService.getSelfMaterialTotalNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getSelfMaterialTotalNum1", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getSelfMaterialTotalNum1(HttpServletRequest request) {
    	return gdService.getSelfMaterialTotalNum1(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDPurchaseApplyUseDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDPurchaseApplyUseDetail(HttpServletRequest request) {
    	return gdService.listGDPurchaseApplyUseDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDReuseDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDReuseDetail(HttpServletRequest request) {
    	return gdService.listGDReuseDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDReuse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDReuse(HttpServletRequest request) {
    	return gdService.addGDReuse(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDReuse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDReuse(HttpServletRequest request) {
    	return gdService.updateGDReuse(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteReuse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteReuse(HttpServletRequest request) {
    	return gdService.deleteReuse(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getReuseById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getReuseById(HttpServletRequest request) {
    	return gdService.getReuseById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageGDRecovery", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDRecovery(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDRecovery(map);
    }
    @RequestMapping(value = "/listPageGDSupplierApplyForPurchase", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDSupplierApplyForPurchase(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDSupplierApplyForPurchase(map);
    }
    @RequestMapping(value = "/listGDSupplierApplyForPurchaseDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDSupplierApplyForPurchaseDetail(HttpServletRequest request) {
    	return gdService.listGDSupplierApplyForPurchaseDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDSupplierAlreadyApplyForPurchaseDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDSupplierAlreadyApplyForPurchaseDetail(HttpServletRequest request) {
    	return gdService.listGDSupplierAlreadyApplyForPurchaseDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDRecoveryDetail", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDRecoveryDetail(HttpServletRequest request) {
    	return gdService.listGDRecoveryDetail(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDRecovery", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDRecovery(HttpServletRequest request) {
    	return gdService.addGDRecovery(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDRecovery", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDRecovery(HttpServletRequest request) {
    	return gdService.updateGDRecovery(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteRecovery", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteRecovery(HttpServletRequest request) {
    	return gdService.deleteRecovery(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getRecoveryById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getRecoveryById(HttpServletRequest request) {
    	return gdService.getRecoveryById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getProjectMaterialNum", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String getProjectMaterialNum(HttpServletRequest request) {
    	return gdService.getProjectMaterialNum(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDPurchaseApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDPurchaseApply(HttpServletRequest request) {
    	return gdService.addGDPurchaseApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDPurchaseReturnApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDPurchaseReturnApply(HttpServletRequest request) {
    	return gdService.addGDPurchaseReturnApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDSupplierApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDSupplierApply(HttpServletRequest request) {
    	return gdService.addGDSupplierApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDNewAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDNewAdvances(HttpServletRequest request) {
    	return gdService.addGDNewAdvances(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDNewAdvances", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDNewAdvances(HttpServletRequest request) {
    	return gdService.updateGDNewAdvances(requestParameterToMap(request));
    }
    
    @RequestMapping(value = "/addGDPurchaseApplyUse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDPurchaseApplyUse(HttpServletRequest request) {
    	return gdService.addGDPurchaseApplyUse(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDPurchaseApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDPurchaseApply(HttpServletRequest request) {
    	return gdService.updateGDPurchaseApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDPurchaseReturnApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDPurchaseReturnApply(HttpServletRequest request) {
    	return gdService.updateGDPurchaseReturnApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDSupplierApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDSupplierApply(HttpServletRequest request) {
    	return gdService.updateGDSupplierApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDPurchaseApplyUse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDPurchaseApplyUse(HttpServletRequest request) {
    	return gdService.updateGDPurchaseApplyUse(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getPurchaseApplyUseById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getPurchaseApplyUseById(HttpServletRequest request) {
    	return gdService.getPurchaseApplyUseById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getPurchaseApplyById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getPurchaseApplyById(HttpServletRequest request) {
    	return gdService.getPurchaseApplyById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getPurchaseReturnApplyById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getPurchaseReturnApplyById(HttpServletRequest request) {
    	return gdService.getPurchaseReturnApplyById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getSupplierApplyById", method = RequestMethod.GET, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getSupplierApplyById(HttpServletRequest request) {
    	return gdService.getSupplierApplyById(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deletePurchaseApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deletePurchaseApply(HttpServletRequest request) {
    	return gdService.deletePurchaseApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deletePurchaseReturnApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deletePurchaseReturnApply(HttpServletRequest request) {
    	return gdService.deletePurchaseReturnApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deleteSupplierApply", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteSupplierApply(HttpServletRequest request) {
    	return gdService.deleteSupplierApply(requestParameterToMap(request));
    }
    @RequestMapping(value = "/deletePurchaseApplyUse", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deletePurchaseApplyUse(HttpServletRequest request) {
    	return gdService.deletePurchaseApplyUse(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getSupplierPurchase", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String getSupplierPurchase(HttpServletRequest request) {
    	return gdService.getSupplierPurchase(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDMaterialBalance", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDMaterialBalance(HttpServletRequest request) {
    	return gdService.listGDMaterialBalance(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getGDBalanceMaterialBefore", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getGDBalanceMaterialBefore(HttpServletRequest request) {
    	return gdService.getGDBalanceMaterialBefore(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listGDMaterialBalanceByGdId", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listGDMaterialBalanceByGdId(HttpServletRequest request) {
    	return gdService.listGDMaterialBalanceByGdId(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDMaterialBalance1", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDMaterialBalance1(HttpServletRequest request) {
    	return gdService.addGDMaterialBalance1(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDMaterialBalance", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDMaterialBalance(HttpServletRequest request) {
    	return gdService.addGDMaterialBalance(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDMaterialBalance1", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDMaterialBalance1(HttpServletRequest request) {
    	return gdService.updateGDMaterialBalance1(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDMaterialBalance", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDMaterialBalance(HttpServletRequest request) {
    	return gdService.updateGDMaterialBalance(requestParameterToMap(request));
    }
    @RequestMapping(value = "/hasBalance", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String hasBalance(HttpServletRequest request) {
    	return gdService.hasBalance(requestParameterToMap(request));
    }
    @RequestMapping(value = "/checkBalnace", method = RequestMethod.POST, produces = "text/html;charset=UTF-8")
    public @ResponseBody String checkBalnace(HttpServletRequest request) {
    	return gdService.checkBalnace(requestParameterToMap(request));
    }
    @RequestMapping(value = "/hasFBBalance", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String hasFBBalance(HttpServletRequest request) {
    	return gdService.hasFBBalance(requestParameterToMap(request));
    }
    @RequestMapping(value = "/getWorkerAndWorkerMoney", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String getWorkerAndWorkerMoney(HttpServletRequest request) {
    	return gdService.getWorkerAndWorkerMoney(requestParameterToMap(request));
    }
    @RequestMapping(value = "/addGDFBBalance", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String addGDFBBalance(HttpServletRequest request) {
    	return gdService.addGDFBBalance(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGDFBBalance", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGDFBBalance(HttpServletRequest request) {
    	return gdService.updateGDFBBalance(requestParameterToMap(request));
    }
    @RequestMapping(value = "/checkAssumeMaterialControl", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String checkAssumeMaterialControl(HttpServletRequest request) {
    	return gdService.checkAssumeMaterialControl(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageFBBalanceByGdId", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageFBBalanceByGdId(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageFBBalanceByGdId(map);
    }
    @RequestMapping(value = "/updateGdDept", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGdDept(HttpServletRequest request) {
    	return gdService.updateGdDept(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGdDeptZy", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGdDeptZy(HttpServletRequest request) {
    	return gdService.updateGdDeptZy(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateGdDeptZying", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateGdDeptZying(HttpServletRequest request) {
    	return gdService.updateGdDeptZying(requestParameterToMap(request));
    }
    @RequestMapping(value = "/updateWorkerBg", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String updateWorkerBg(HttpServletRequest request) {
    	return gdService.updateWorkerBg(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageGdNoLx", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGdNoLx(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGdNoLx(map);
    }
    /**
     * 删除工单信息
     * 
     */
    @RequestMapping(value = "/deleteGdInfo", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String deleteGdInfo(HttpServletRequest request) {
    	return gdService.deleteGdInfo(requestParameterToMap(request));
    }
    @RequestMapping(value = "/listPageGDDel", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
    public @ResponseBody String listPageGDDel(HttpServletRequest request) {
    	Map<String, Object> map = getPagerMap(request);
    	map.putAll(requestParameterToMap(request));
    	return gdService.listPageGDDel(map);
    }
}
